import DrugStatusEnum from "@/enums/DrugStatusEnum";
import {
  search
} from '/src/api/pharmacy/drug'
import {
  search as drugTypeSearch
} from '/src/api/drug/drugType'
import {
  search as drugUnitSearch
} from '/src/api/drug/drugUnit'
import {
  search as drugDecoctionSearch
} from '/src/api/drug/drugDecoction'


/**
 * @param label 表头
 * @param prop 字段名
 * @param isSearch 是否筛选项
 * @type {[{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string, enum: {0: string, 1: string, 2: string}}]}
 */
const tableColumn = [{
    label: "处方订单编号",
    prop: "order_sn",
    isSearch: true,
    formType: "input",
    isTable: true
  }, {
    label: "咨询订单编号",
    prop: "ref_code",
    isSearch: false,
    isTable: true
  }, {
    label: "患者姓名",
    prop: "patient_name",
    isSearch: true,
    formType: "input",
    isTable: true
  }, {
    label: "患者手机号",
    prop: "patient_mobile",
    isSearch: true,
    formType: "input",
    isTable: true
  }, {
    label: "开方次数",
    prop: "num",
    isSearch: false,
    isTable: true
  }, {
    label: "医生/团队名称",
    prop: "doctor_name",
    isSearch: true,
    formType: "input",
    isTable: true
  }, {
    label: "收货人信息",
    prop: "eceiver_name",
    isSearch: false,
    isTable: true
  }, {
    label: "发货方式",
    prop: "send_method_text",
    isSearch: false,
    isTable: true
  }, {
    label: "快递单号",
    prop: "express_string",
    isSearch: false,
    isTable: true
  },
  {
    label: "订单状态",
    prop: "order_status_txt",
    isSearch: false,
    isTable: true
  },
  {
    label: "支付状态",
    prop: "pay_status_text",
    isSearch: false,
    isTable: true
  },
  {
    label: "订单推送状态",
    prop: "is_third",
    isSearch: false,
    isTable: true
  },
  {
    label: "开方类型",
    prop: "is_fast_prescribe",
    isSearch: false,
    isTable: true
  },
  {
    label: "开方平台",
    prop: "prescription_order_side",
    isSearch: false,
    isTable: true
  },
  {
    label: "药房",
    prop: "drugstore",
    isSearch: false,
    isTable: true
  },
  {
    label: "订单金额",
    prop: "total_money",
    isSearch: false,
    isTable: true
  },
  {
    label: "诊金金额",
    prop: "consulting_fee",
    isSearch: false,
    isTable: true
  },
  {
    label: "药费",
    prop: "drug_money",
    isSearch: false,
    isTable: true
  },
  {
    label: "加工费",
    prop: "cook_money",
    isSearch: false,
    isTable: true
  },
  {
    label: "快递费",
    prop: "freight_money",
    isSearch: false,
    isTable: true
  },
  {
    label: "下单时间",
    prop: "created_at",
    isSearch: false,
    isTable: true
  },
  {
    label: "支付时间",
    prop: "payment_at",
    isSearch: false,
    isTable: true
  },
  {
    label: "处方未支付原因",
    prop: "unpaid_reason",
    isSearch: false,
    isTable: true
  },
  {
    label: "锁方状态",
    prop: "lock_status",
    isSearch: false,
    isTable: true
  }
]

const tableConfig = {
  buttons: ["view"],
  editBtnShow: true,
  editBtnPath: "/order_manage/recipe_manage",
  isBatchId: true
}
const pageConfig = {
  small: false,
  disabled: false,
  background: false,
}

export {
  tableColumn,
  tableConfig,
  pageConfig
};